package com.atguigu.springcloud.dao;

import com.atguigu.springcloud.entities.Payment;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * @author: XieHaichuan
 * @create: 2021-07-29 10:25
 **/
@Mapper
public interface PaymentDao {
    /**
     * 新增一条payment数据
     * @param payment
     * @return
     */
    int create(Payment payment);

    /**
     * 根据id查询出一条payment
     * @param id
     * @return
     */
    Payment getPaymentById(@Param("id")Long id);
}
